import java.awt.*;
import java.awt.event.*;
import java.util.*;

import javax.swing.JPanel;

//swing classes
//import com.sun.java.swing.text.*;
import com.sun.java.swing.*;

/**
 *
 * clasa crare instantiaza triunghiurile si le deseneaza
 */

public class TriangleDrawing extends JxFrame
{
stdTriangle t, t1;
IsoscelesTriangle it;

  public TriangleDrawing()
  {
  super("Draw triangles");
  Tpanel tp = new Tpanel();
  t = new stdTriangle(new Point(10,10), new Point(150,50), new Point(100, 75));
  it = new IsoscelesTriangle(new Point(150,100), new Point(240,40), new Point(175, 150));
  t1 = new stdTriangle(new Point(150,100), new Point(240,40), new Point(175, 150));
  tp.addTriangle(t);
  tp.addTriangle(it);
 // tp.addTriangle(t1);
  
  getContentPane().add(tp);
  setSize(300, 200);
  setBackground(Color.white);
  setVisible(true);
  }
  
  /**
   * functia main creeaza o instanta a clasei TriangleDrawing
   * @param arg
   */
  static public void main(String[] arg)
  {
    new TriangleDrawing();
  }
}


